import request from '@/utils/request'

// 查询教练管理列表
export function listTeacher(query) {
  return request({
    url: '/keep/teacher/list',
    method: 'get',
    params: query
  })
}

// 查询教练管理详细
export function getTeacher(id) {
  return request({
    url: '/keep/teacher/' + id,
    method: 'get'
  })
}

// 新增教练管理
export function addTeacher(data) {
  return request({
    url: '/keep/teacher',
    method: 'post',
    data: data
  })
}

// 修改教练管理
export function updateTeacher(data) {
  return request({
    url: '/keep/teacher',
    method: 'put',
    data: data
  })
}

// 删除教练管理
export function delTeacher(id) {
  return request({
    url: '/keep/teacher/' + id,
    method: 'delete'
  })
}

//根据id查询教练详细信息
export function selectCommonTeacher(id) {
  return request({
    url: '/keep/teacher/teacherGym/' + id,
    method: 'get'
  })
}

// 查询教练管理列表
// export function listTeacher2(query) {
//   return request({
//     url: '/keep/teacher/list',
//     method: 'get',
//     params: query
//   })
// }
